﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddCinemaUserControl.ascx.cs" Inherits="MBS.UserControls.CinemaUserControl.AddCinemaUserControl" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
</style>
<table class="style1">
    <tr>
        <td width="20%">
            <asp:Label ID="Label1"     runat="server" Text="Cinema Name" CssClass="label"></asp:Label>
        </td>
        <td width="80%">
            <asp:TextBox ID="txtCinemaName" runat="server" CssClass="textbox"></asp:TextBox>
            <asp:RequiredFieldValidator  ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtCinemaName" ErrorMessage='Input CinemaName!' Text='*'></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label2"  runat="server" Text="No Of Screens" CssClass="label"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtNumberOfScreens" runat="server" CssClass="textbox"></asp:TextBox>
            <asp:RequiredFieldValidator  ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtNumberOfScreens" ErrorMessage='Input NumberOfScreens!' Text='*'></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtNumberOfScreens" ErrorMessage="Enter Number" 
                ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label3"  runat="server" Text="Location" CssClass="label"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtLocation" runat="server" CssClass="textbox"></asp:TextBox>
            <asp:RequiredFieldValidator  ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtLocation" ErrorMessage='Input Location!' Text='*'></asp:RequiredFieldValidator>
        </td>
    </tr>
   
    <tr>
        <td>
            
        </td>
        <td>
        <asp:Button ID="btnAddCinema" runat="server" onclick="Button1_Click" 
                Text="Add Cinema" CssClass="button"/>
            <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Clear" CssClass="button"/>
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            <asp:ValidationSummary ForeColor="Red" ID="ValidationSummary1" runat="server"  HeaderText="Following error occurs:" ShowMessageBox="false" DisplayMode="BulletList" ShowSummary="true"  />
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>

